package com.numberma.userservice.Utils;

import com.numberma.userservice.constant.RoleConstant;

import java.util.Objects;

public class Judge {

    public static boolean Compare(String MyRole,String UserRole){
        if(MyRole.equals(RoleConstant.SUPER_ADMIN)){
              return true;
        }
        else if(MyRole.equals(RoleConstant.ADMIN)){
            if(UserRole.equals(RoleConstant.USER)){
                return true;
            }

            return false;
        }

            return false;




    }


}
